package engine;

import java.awt.event.KeyEvent;
import java.util.HashSet;

public class KeySet {
	
	private HashSet<Integer> keySet;
	
	public KeySet() {
		this.keySet = new HashSet<Integer>();
	}
	
	public void addKey(int KeyCode) {
		this.keySet.add(KeyCode);
	}
	
	public void removeKey(int KeyCode) {
		this.keySet.remove(KeyCode);
	}

	public int size() {
		return this.keySet.size();
	}
	
	public boolean isPressed(int KeyCode) {
		return this.keySet.contains(KeyCode);
	}
}
